-- GENERATED SPELL FOR [Son of Cenarius] --


function spell0_4057(pUnit, Event) --@Summon Treant Ally,Self--
pUnit:FullCastSpellOnTarget(7993,pUnit)
pUnit:RegisterEvent('Sorts_4057', 607, 1)
end

function Sorts_4057(pUnit, Event)
local choix_sorts_4057 = math.random(0, 0)
if choix_sorts_4057 == 0 then
pUnit:RegisterEvent('spell0_4057', 1, 1)
end
end

function mob4057_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4057', math.random(1500, 3000), 1)
end

function mob4057_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4057_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4057_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4057, 1, 'mob4057_Action')
RegisterUnitEvent(4057, 2, 'mob4057_Leave')
RegisterUnitEvent(4057, 3, 'mob4057_Kill')
RegisterUnitEvent(4057, 4, 'mob4057_Die')
